package com.weseal.common;

import org.apache.log4j.Logger;
import org.springframework.web.context.WebApplicationContext;
import org.springframework.web.servlet.DispatcherServlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author weseal
 * @title
 * @description
 * @usage
 * @copyright Copyright 2014  rrmj Corporation. All rights reserved.
 * @company 上海众多美网络科技有限公司
 * @create 2017/9/17
 */
public class PartDispatcherServlet extends DispatcherServlet {

	private static final Logger LOGGER = Logger.getLogger(PartDispatcherServlet.class);

	public PartDispatcherServlet(WebApplicationContext webApplicationContext) {
		super(webApplicationContext);
	}


	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
//		HttpSession httpSession = request.getSession();
//		MasterInfoVo masterInfoVo = (MasterInfoVo)httpSession.getAttribute(CommonUtils.CURRENT_MASTER);
//		Set<FunctionInfoVo> functionInfoVos =(Set<FunctionInfoVo>)httpSession.getAttribute(CommonUtils.CURRENT_ROLE);
//		request.setAttribute("currentUser",masterInfoVo);
//		request.setAttribute("functionInfos",functionInfoVos);
		super.service(request, response);
	}


}
